package com.hspedu.poly_.ployparameter_;

/**
 * @author yulian174
 * @version 1.0
 */
public class Manager extends Employee {
    private double bonus;

    public Manager(String name, double salary, double bonus) {
        super(name, salary);
    }

    public void manage() {
        System.out.println("管理manage方法已启动");
    }

    public void getAnnual() {
        System.out.println(getName() + "经理的年工资为：" + (getSalary() * 12 + bonus));
    }

}
